<template>
	<view>
		<u-navbar title="添加關聯商品" placeholder autoBack>
			<view class="flexright xiaohui" slot="right" @click="tianjiayg">新增</view>
		</u-navbar>
		<view style="padding-bottom: 150rpx;">
			<view class="mainpadding_top ffffff" v-for="item in 3">
				<view class="flexbetween">
					<view class="titletext hei_text bold">規格標題</view>
					<u-icon name="trash" color="#ff0000" size="18"></u-icon>
				</view>
				<view class="bghui mainpadding_top radius">
					<input type="text" class="hui_text main_size bold" placeholder="請輸入規格標題">
				</view>
				<view class="flexbetween margin_top">
					<view class="titletext hei_text bold">新增規格内容</view>
					<u-icon name="trash" color="#ff0000" size="18"></u-icon>
				</view>
				<view class="flexleft margin_top">
					<input type="text" placeholder="請輸入規格内容" class="name" v-model="guigename">
					<view class="add" @click="addguige">添加</view>
				</view>
				<view class="bghui radius mainpadding_top">
					<view class="flexbetween">
						<view class="huang_text main_size bold">測試規格1</view>
						<u-icon name="trash" color="#ff0000" size="16"></u-icon>
					</view>
					<view class="mainpadding_top ffffff radius flexleft">
						<view class="hui_text main_size bold">價格：</view>
						<input type="number" class="huang_text main_size bold">
					</view>
					<image class="listleftimg radius margin_top" src="@/static/image/system/upimg.png" mode=""></image>
				</view>
			</view>
			<view class="mainpadding posibottom" style="bottom: 0;">
				<view class="submitbtn">確認</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.name {
		width: 85%;
		border: 2rpx solid #ffb800;
		padding: 25rpx 30rpx;
		border-top-left-radius: 10rpx;
		border-bottom-left-radius: 10rpx;
	}
	
	.add {
		width: 15%;
		color: #333;
		background-color: #ffb800;
		padding: 29rpx 20rpx 32rpx 28rpx;
		border-top-right-radius: 10rpx;
		border-bottom-right-radius: 10rpx;
		text-align: center;
		font-size: 28rpx;
	}
	
	.line {
		padding-bottom: 30rpx;
		border-bottom: 1rpx solid RGBA(247, 247, 247, 1);
	}

</style>
